package ecarx.jni.recorder;

public class ScreenRecorder {

    static {
        System.loadLibrary("displayrecorder");
    }

    public void start(String rootPath, int duration, RecorderListener recorderListener) {
        nativeStart(rootPath, duration, recorderListener);
    }

    public void stop() {
        nativeStop();
    }

    public native void nativeStart(String rootPath, int duration, RecorderListener recorderListener);

    public native void nativeStop();
}
